home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / collections / ItemResponder.as < prev    next >
Text File  |  2009-02-12  |  890b  |  39 lines

  1. package mx.collections
  2. {
  3.    import mx.core.mx_internal;
  4.    import mx.rpc.IResponder;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class ItemResponder implements IResponder
  9.    {
  10.       
  11.       mx_internal static const VERSION:String = "3.0.0.0";
  12.        
  13.       
  14.       private var _faultHandler:Function;
  15.       
  16.       private var _token:Object;
  17.       
  18.       private var _resultHandler:Function;
  19.       
  20.       public function ItemResponder(param1:Function, param2:Function, param3:Object = null)
  21.       {
  22.          super();
  23.          _resultHandler = param1;
  24.          _faultHandler = param2;
  25.          _token = param3;
  26.       }
  27.       
  28.       public function result(param1:Object) : void
  29.       {
  30.          _resultHandler(param1,_token);
  31.       }
  32.       
  33.       public function fault(param1:Object) : void
  34.       {
  35.          _faultHandler(param1,_token);
  36.       }
  37.    }
  38. }
  39.